package com.enablefeignclients.feignclient.web;

import com.enablefeignclients.feignclient.service.SchedualServiceHi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeiginController {
    @Autowired
    SchedualServiceHi schedualServiceHi;
    @RequestMapping("/hi")
    public String feginDemo(@RequestParam String name){
        return schedualServiceHi.sayHiFromClientOne(name);

    }
}
